<extend name="./Tm/Dt/User_common.html" />

<block name="style">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Dt/libs/jedate/skin/jedate.css" />
</block>

<block name="main">
	<div class="right_main">
		<div class="container-fluid">
			<div class="row">
				<div class="col-sm-12">
					<div class="panel panel-default">
						<div class="panel-heading">
							<i class="inde_icon icon_jjmx"></i>奖金明细</span>
						</div>
						<div class="panel-body">
							<div class="select_box">
								<form class="form-inline" action="/user/jjmx" method="get">
									<div class="form-group">
										<label>奖金</label>
										<select class="form-control" name="type">
									    	<option value="0">==全部==</option>
									    	<option value="1" {$mr1}>静态分红</option>
									    	<option value="3" {$mr3}>管理奖</option>
									    	<option value="2" {$mr2}>直推奖</option>
									    </select>
									</div>
									
									<div class="form-group">
										<label>开始日期</label>
										<input type="text" class="form-control" id="date1" name="b" placeholder="开始时间" value="{$kstime}">
									</div>
									<div class="form-group">
										<label>结束日期</label>
										<input type="text" class="form-control" id="date2" name="e" placeholder="结束时间"  value="{$jstime}">
									</div>
									<button type="submit" class="btn btn-default">查询</button>
								</form>

							</div>

							<div class="mx_box">
								<div class="table-responsive">
									<table class="table">
										<tr>
								    		<th>会员账户</th>
								    		<th>奖金名称</th>
								    		<th>奖金总额</th>
								    		<!-- <th>状态</th> -->
								    		<th>进入直接提现钱包</th>
								    		<th>进入季度分红钱包</th>
								    		<th>进入半年分红钱包</th>
								    		<th>进入直推钱包</th>
								    		<th>产生日期</th>
								    		<!-- <th>发放日期</th> -->
									    </tr>
										<foreach name='list' item='v'>
										    <tr>
										    	<td>{$v.username}</td>
										    	<td>{$v.title}</td>
										    	<td>{$v.money}</td>
										    	<!-- <td>未发放</td> -->
										    	<td>{$v.p5}</td>
										    	<td>{$v.p2}</td>
										    	<td>{$v.p3}</td>
										    	<td>{$v.zhi}</td>
										    	<td>{$v.times_c|date="Y-m-d H:i:s",###}</td>
										    	<!-- <td>2017/3/6</td> -->
										    </tr>
									    </foreach>
									    <if condition="$count neq '0'" >
									    <tr>
									    	<td>汇总</td>
									    	<td></td>
									    	<td>{$z_money}</td>
									    	<!-- <td>未发放</td> -->
									    	<td>{$z_p5}</td>
									    	<td>{$z_p2}</td>
									    	<td>{$z_p3}</td>
									    	<td>{$z_zhi}</td>
									    	<td></td>
									    	<!-- <td>2017/3/6</td> -->
									    </tr>
									    </if>
									</table>
								</div>
							</div>
							<div class="tab_fy clear_fix">
								<div class="float_r">
									<div class="fy_box">
										<ul class="pagination">{$page}</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>
<block name="script">
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Dt/libs/jedate/jedate.min.js"></script>

	<script>
		$(function() {
			jeDate({
				dateCell: "#date1",
				format: "YYYY-MM-DD",
				isTime: false,
				minDate: "1900-1-1",
				maxDate: "2099-12-12"
			})
			jeDate({
				dateCell: "#date2",
				format: "YYYY-MM-DD",
				isTime: false,
				minDate: "1900-1-1",
				maxDate: "2099-12-12"
			})
		});
	</script>
</block>